home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7058 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.sunquest.com!kitk!kitk
  2. From: kitk@mudshark.sunquest.com (Kit Kauffmann)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: MFC button with bitmap & text
  5. Date: Wed, 21 Feb 1996 10:02:31
  6. Organization: Sunquest
  7. Message-ID: <kitk.2098.000A0B15@mudshark.sunquest.com>
  8. References: <4gco0i$fmg@daily-planet.execpc.com>
  9. NNTP-Posting-Host: kkauffma.sunquest.com
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
  11.  
  12. In article <4gco0i$fmg@daily-planet.execpc.com> manowski@execpc.com (Michael Manowski) writes:
  13. >From: manowski@execpc.com (Michael Manowski)
  14. >Subject: MFC button with bitmap & text
  15. >Date: Tue, 20 Feb 1996 17:04:15 GMT
  16.  
  17. >I am having problems creating a button with both a bitmap image and
  18. >text.  Does anyone know how this can be accomplished.  I have tried to
  19. >attach a CStatic class to a CButton (|BS_BITMAP) button and this works
  20. >OK.  However, when the button is depressed, the text disappears.
  21.  
  22. >Any help on this would be greatly appreciated.
  23. >Thank you
  24.  
  25. >Michael Manowski
  26.  
  27. >manowski@mail.execpc.com
  28. >michael.manowski@midata.com
  29. >103012.2340@compuserve.com
  30. >Michael Manowski
  31. >manowski@mail.execpc.com
  32.  
  33. I don't think you'll get anywhere combining several controls together on the 
  34. screen, which is what it sounds like you are doing.  (?)  Windows doesn't cope 
  35. well with overlapping controls, as the window with the focus repaints the 
  36. entire area (painting over other control as you've seen) it 'owns'. 
  37.  
  38. I think the only way you'll get a satisfactory solution is by putting the text 
  39. into the bitmap, if you want the text to be a responsive part of the button.
  40.  
  41.  
  42. Kit Kauffmann - kitk@mudshark.sunquest.com
  43. AKA 73363,447 (Compu$erve)
  44.  
  45. Finger me for my public key
  46.